#ifndef CREATENEWGROUPEVENT_H
#define CREATENEWGROUPEVENT_H

#include "abstractevent.h"

#include <QObject>

class CreateNewGroupEvent : public AbstractEvent
{
    Q_OBJECT
public:
    explicit CreateNewGroupEvent(const QVariant &data, QObject *parent = 0);

public:
    virtual void process();
    virtual AbstractEvent::EventType eventType() const;

    inline qint64 getGroupId() const {
        return m_groupId;
    }
    inline int getCountUser() const {
        return m_countUser;
    }
    inline QString getGroupName() const {
        return m_groupName;
    }
    inline QList <qint64> getListFids() const {
        return m_listFids;
    }

private:
    void parseList(const QVariant &data);

    qint64 m_groupId;
    int m_countUser;
    QString m_groupName;
    QList <qint64> m_listFids;

};

#endif // CREATENEWGROUPEVENT_H
